import java.awt.Dimension;
import javax.swing.JFrame;

/*
 * http://zetcode.com/tutorials/javagamestutorial/
 */

@SuppressWarnings("serial")
public class SwingTest extends JFrame {
	
	/*
	 * Window initialization goes here
	 */
	public SwingTest() {
		SwingPanel sp = new SwingPanel();
		add(sp);
		
		setTitle("SwingTest");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setSize(800, 600);
		setLocationRelativeTo(null);
		setResizable(false);
		setVisible(true);
		
		// Set content size
		getContentPane().setPreferredSize(new Dimension(800, 600));
		pack();
		
		sp.run();
	}

	/*
	 * Just the entrypoint
	 */
	public static void main(String[] args) {
		new SwingTest();
	}

}
